import http from '@/qly/http'

export const auth = {
    // 账号密码登录
    accountLogin: params => http.post(`/system/mobile/login`, params),
    // 获取个人信息
    info: () => http.get(`/system/mobile/user/info`),
    // 登出
    logout: () => http.post(`/system/mobile/logout`),
    
    // 微信登录
    wechatLogin: code => http.post(`/api/user/login/ma/${code}`),
    // 手机号认证
    mobileAuth: params => http.post(`/api/login/mobile`, params),
}
